package com.mindao.app.vpatient.model;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mindao.app.common.spring.model.BaseModel;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述：消息响应配置
/*
/* 创 建 人：李国才
/* 创建时间：2016年5月22日 下午3:22:38 	
 **/
@Entity
@Table(name = "vp_msg_conf")
public class VpMsgConf extends BaseModel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3738828952043825910L;
	public VpMsgConf(){
		
	}
	public VpMsgConf(VpCase vpCase,  String answer,BigDecimal score) {
		super();
		this.vpCase = vpCase;
//		this.title = title;
		this.answer=answer;
		this.score=score;
	}
 
	/**
	 * 病例类型
	 */
	private VpCase vpCase;
 
	// 响应文本
	private String answer;
	
	// 微信素材id（必须是永久mediaID）
	private String remoteMediaId;
	
	// 本地片素材id（Attachment的id）
	private String localMediaId;
	//文件名称，可以用caseId_ms
	private String mediaFileName;
	/**
	 * 合适度得分
	 */
	private BigDecimal score;
	

 
	@ManyToOne//(cascade = { CascadeType.ALL })
	@JoinColumn(name = "case_id", nullable = true)
	public VpCase getVpCase() {
		return vpCase;
	}
	public void setVpCase(VpCase vpCase) {
		this.vpCase = vpCase;
	}
//	public String getTitle() {
//		return title;
//	}
//	public void setTitle(String title) {
//		this.title = title;
//	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public String getRemoteMediaId() {
		return remoteMediaId;
	}
	public void setRemoteMediaId(String remoteMediaId) {
		this.remoteMediaId = remoteMediaId;
	}
	public String getLocalMediaId() {
		return localMediaId;
	}
	public void setLocalMediaId(String localMediaId) {
		this.localMediaId = localMediaId;
	}
	public BigDecimal getScore() {
		return score;
	}
	public void setScore(BigDecimal score) {
		this.score = score;
	}
	
	
}
